{ template ('header.html') }
<table border="1" align="center" width="90%" cellpadding="3" cellspacing="0">
<caption><h1> { $tableName } <h1></caption>
<tr bgcolor="#cccccc">
<th>编号</th><th>姓名</th><th>性别</th><th>年龄</th><th>电子邮件</th>
</tr>
<!-- loop $users $user -->
<tr>
<!-- loop $user $colKey $colValue -->
<!-- if ($colKey == "sex") -->
<!-- if ($colValue=="男")  -->
<td bgColor="red"> { $colValue } </td>
<!-- elseif ($colValue == "女") -->
<td bgColor="green"> { $colValue } </td>
<!-- else -->
<td bgColor="blue"> 未知 </td>
<!-- /if -->
<!-- else -->
<td> { $colValue } </td>
<!-- /if -->
<!-- /loop -->
</tr>
<!-- /loop -->
</table>
<center>
共查找到<b> { $total } </b>条记录,显示第<b>{$pageInfo.page_start}</b>-<b>{$pageInfo.page_end}</b>条记录
<!-- if($pageInfo.prev_page) -->

<a href="pagetest.php?page={$pageInfo.prev_page}">上一页</a>
<!-- /if -->
<!-- if($pageInfo.next_page) -->

<a href="pagetest.php?page={$pageInfo.next_page}">下一页</a>
<!-- /if -->
</center>
{template('footer.html')  }